﻿//
// GNS_Accounted.h
// MobileManageSys
//FuncTion  分成占比
// Created by mr.l on 16/1/15.
//
//

#ifndef __MobileManageSys__GNS_Accounted__
#define __MobileManageSys__GNS_Accounted__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "GNS_CursorTextField.h"
#include "GNS_Common.h"
#include "GNS_Operator.h"
#include "GNS_Handler.h"

US_NS_CUSTOM_UI;
USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_Accounted : public Layer
{
public:
    GNS_Accounted();
    ~GNS_Accounted();
    static GNS_Accounted* createLayer();
    virtual bool init();
    CREATE_FUNC(GNS_Accounted);
    void BtnCallBack(Ref *pSender , ui::Widget::TouchEventType type);
    void SelectedItemEvents(Ref*pSender,ui::ListView::EventType type);
    void ListViewBtn(Ref * pSender ,ui::Widget::TouchEventType type);
    void SetNodeName(std::string CsbName);
    void SetAccDate();
private:
    void RefreshList(CMD_SC_GetAgentProfitPercentResult CurAgentPro,int x);
    void Prompt();
public:
    GNS_Operator * pOperator;
private:
    Node * pGNS_Accounted;
    TextField * InPutText;
    //GNS_CursorTextField * pCursorTEXT;
	TextField * searchText;
	CustomEditBox* _searchText;
    ListView * pListView;
    vector<CMD_SC_GetAgentProfitPercentResult> _AgProPer;
    /**
     *  UI文本显示
     */
    Text * IDText;
    Text * AccountText;
    Text * AccountText1;
    Text * num;
};

#endif /* defined(__MobileManageSys__GNS_Accounted__) */